//
//  CSL_Search_singleCell.m
//  HZ_Beautiful_Music
//
//  Created by dllo on 16/4/1.
//  Copyright © 2016年 ui. All rights reserved.
//

#import "CSL_Search_singleCell.h"

@implementation CSL_Search_singleCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
            
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
//        _titleLabel.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_titleLabel];
        
        self.songerLabel = [[UILabel alloc] initWithFrame:CGRectZero];
//        _songerLabel.backgroundColor = [UIColor redColor];
        _songerLabel.font = [UIFont systemFontOfSize:12];
        _songerLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_songerLabel];
        
        self.buttonHQ = [UIButton buttonWithType:UIButtonTypeSystem];
        _buttonHQ.frame = CGRectZero;
//        _buttonHQ.backgroundColor = [UIColor redColor];
        [_buttonHQ setImage:[[UIImage imageNamed:@"HQ64"] imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
        [self.contentView addSubview:_buttonHQ];
    
//        self.buttonMV = [UIButton buttonWithType:UIButtonTypeSystem];
//        _buttonMV.frame = CGRectZero;
////        _buttonMV.backgroundColor = [UIColor redColor];
//        [_buttonMV setImage:[[UIImage imageNamed:@"MV64"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]forState:UIControlStateNormal];
//        [self.contentView addSubview:_buttonMV];
    }
    return self;
}

-(void)layoutSubviews {
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(self.bounds.size.width/30, self.bounds.size.height/12, self.bounds.size.width/2, self.bounds.size.height/2);
    _songerLabel.frame = CGRectMake(self.bounds.size.width/30, self.bounds.size.height/1.5, self.bounds.size.width/2, self.bounds.size.height/3.2);
    _buttonHQ.frame = CGRectMake(self.bounds.size.width/1.6, self.bounds.size.height/6, self.bounds.size.width/15, self.bounds.size.height/2);
//    _buttonMV.frame = CGRectMake(self.bounds.size.width/1.4, self.bounds.size.height/12, self.bounds.size.width/15, self.bounds.size.height/1.5);
}




@end
